import Axios from '../../Js/Ajax'
const Order = {
  createOrder (params) {
    console.log('createOrder params:', params)
    return Axios.post(`/auth/asset`, params)
  },
  // 创建订单
  createOrderItem (params) {
    console.log('makerOrder params:', params)
    return Axios.post(`/auth/order`, params)
  },
  // 挂单
  makerOrder (params) {
    console.log('makerOrder params:', params)
    return Axios.post(`/auth/maker-order`, params)
  },
  // 吃单
  takeOrder (params) {
    console.log('takeOrder params:', params)
    return Axios.post(`/auth/taker-order`, params)
  },
  // 购买完成更新拥有者信息
  updateOwnerInfo (params) {
    console.log('takeOrder params:', params)
    return Axios.put(`/auth/update-asset`, params.data, { headers: params.headers })
  }
}
export default Order
